package edu.seu.mart.web;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener implements HttpSessionListener {

	@Override
    public void sessionCreated(HttpSessionEvent event) {
        System.out.println("创建了Session");
    }

	@Override
	public void sessionDestroyed(HttpSessionEvent event) {
		SessionContext.removeSession(event.getSession());
		System.out.println("移除了Session:"+event.getSession().getId());
	}

}